<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/jirui/bigdata/big_data_sales_order.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/jirui/bigdata/big_data_sales_order.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'big_data_sales_order_id',
                footer: "Foots",
                cnName: '大数据销售订单表',
                name: 'bigdata/big_data_sales_order',
                url: "/big_data_sales_order/",
                sortName: "CreateDate"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"sap_order_no":"","dms_order_no":""});
            const searchFormOptions = ref([[{"title":"SAP销售订单号","field":"sap_order_no","type":"like"}],[{"title":"DMS销售订单号","field":"dms_order_no","type":"like"}]]);
            const columns = ref([{field:'big_data_sales_order_id',title:'SAP销售订单表id',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'sap_order_no',title:'SAP销售订单号',type:'string',width:220,hidden:true,align:'left'},
                       {field:'sap_sales_voucher',title:'SAP销售开票凭证',type:'string',width:220,hidden:true,align:'left'},
                       {field:'sap_sales_delivery_order_no',title:'SAP销售交货单号',type:'string',width:220,hidden:true,align:'left'},
                       {field:'sap_dealer_customer_no',title:'SAP经销商客户的编号',type:'string',width:220,hidden:true,align:'left'},
                       {field:'dealer_code',title:'运达方经销商ERP号',type:'string',width:220,hidden:true,align:'left'},
                       {field:'dealer_name',title:'运达方经销商名称',type:'string',width:220,hidden:true,align:'left'},
                       {field:'sold_dealer_code',title:'售达方经销商ERP号',type:'string',width:220,hidden:true,align:'left'},
                       {field:'sold_dealer_name',title:'售达方经销商名称',type:'string',width:220,hidden:true,align:'left'},
                       {field:'in_stock_date',title:'入库时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'vin',title:'VIN码',type:'string',width:220,hidden:true,align:'left'},
                       {field:'ERDAT',title:'销售订单创建时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'AEDAT',title:'销售订单修改时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'dms_order_no',title:'DMS销售订单号',type:'string',width:220,align:'left',sort:true},
                       {field:'MATNR',title:'物料编码',type:'string',width:220,align:'left'},
                       {field:'OBKNR',title:'对象清单编号',type:'string',width:220,align:'left'},
                       {field:'OBZAE',title:'对象清单行号',type:'string',width:220,align:'left'},
                       {field:'Creator',title:'创建人',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'Modifier',title:'修改人',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'status',title:'推送状态，0:未推送，1:已推送',type:'int',width:110,require:true,align:'left'},
                       {field:'order_status',title:'订单状态',type:'string',width:110,align:'left'},
                       {field:'order_car_classify',title:'车辆分类',type:'string',width:110,align:'left'},
                       {field:'order_org_name',title:'大区',type:'string',width:110,align:'left'},
                       {field:'order_customer_classify',title:'客户分类',type:'string',width:110,align:'left'},
                       {field:'order_customer_name',title:'客户名称',type:'string',width:110,align:'left'},
                       {field:'order_province',title:'省',type:'string',width:110,align:'left'},
                       {field:'order_city',title:'市',type:'string',width:110,align:'left'},
                       {field:'order_sales',title:'经销、直销',type:'string',width:110,align:'left'},
                       {field:'order_material_code',title:'材料code',type:'string',width:120,align:'left'},
                       {field:'order_material_name',title:'材料name',type:'string',width:220,align:'left'},
                       {field:'order_nature',title:'订单性质',type:'string',width:110,align:'left'},
                       {field:'AUFNR',title:'生产订单号',type:'string',width:220,align:'left'},
                       {field:'order_create_date',title:'订单创建日期',type:'datetime',width:150,align:'left',sort:true},
                       {field:'order_pricing_completion_date',title:'DMS订单核价日期',type:'datetime',width:150,align:'left',sort:true},
                       {field:'order_quantity',title:'订单数量',type:'int',width:80,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
